import { ACCOUNT_IDENTIFIERS } from '../constants/config';
import { HubSpotConfig, DeprecatedHubSpotConfigFields, HubSpotConfigErrorType, HubSpotConfigValidationResult } from '../types/Config';
import { HubSpotConfigAccount } from '../types/Accounts';
import { ValueOf } from '../types/Utils';
export declare function getLocalConfigDefaultFilePath(): string;
export declare function getConfigPathEnvironmentVariables(): {
    useEnvironmentConfig: boolean;
    configFilePathFromEnvironment: string | undefined;
};
export declare function doesConfigFileExistAtPath(path: string): boolean;
export declare function readConfigFile(configPath: string): string;
export declare function removeUndefinedFieldsFromConfigAccount<T extends HubSpotConfigAccount | Partial<HubSpotConfigAccount> = HubSpotConfigAccount>(account: T): T;
export declare function formatConfigForWrite(config: HubSpotConfig): HubSpotConfig;
export declare function writeConfigFile(config: HubSpotConfig, configPath: string): void;
export declare function normalizeParsedConfig(parsedConfig: HubSpotConfig & DeprecatedHubSpotConfigFields): HubSpotConfig;
export declare function convertToDeprecatedConfig(config: HubSpotConfig): Partial<HubSpotConfig> & Partial<DeprecatedHubSpotConfigFields>;
export declare function parseConfig(configSource: string, configPath: string): HubSpotConfig;
export declare function buildConfigFromEnvironment(): HubSpotConfig;
export declare function getAccountIdentifierAndType(accountIdentifier: string | number): {
    identifier: string | number;
    identifierType: ValueOf<typeof ACCOUNT_IDENTIFIERS>;
};
export declare function getConfigAccountByIdentifier(accounts: Array<HubSpotConfigAccount>, identifierFieldName: ValueOf<typeof ACCOUNT_IDENTIFIERS>, identifier: string | number): HubSpotConfigAccount | undefined;
export declare function getConfigAccountByInferredIdentifier(accounts: Array<HubSpotConfigAccount>, accountIdentifier: string | number): HubSpotConfigAccount | undefined;
export declare function getConfigAccountIndexById(accounts: Array<HubSpotConfigAccount>, id: number): number;
export declare function validateConfigAccount(account: Partial<HubSpotConfigAccount>): HubSpotConfigValidationResult;
export declare function handleConfigFileSystemError(error: unknown, path: string): {
    message?: string;
    type: HubSpotConfigErrorType;
};
